$OpenBSD: patch-src_xfedefs_h,v 1.5 2016/09/04 09:04:39 giovanni Exp $

Unbreak launching Xfe as root with sudo or su (fix gnuisms)

--- src/xfedefs.h.orig	Wed Jul 27 13:27:41 2016
+++ src/xfedefs.h	Sun Sep  4 10:20:49 2016
@@ -172,11 +172,11 @@
 
 // Command to launch Xfe as root with sudo or su, using st as a terminal
 #ifndef SUDOCMD
-#define SUDOCMD    " -g 60x4 -e sudo su -c 'nohup xfe >& /dev/null & sleep 1'"
+#define SUDOCMD    " -g 60x4 -e doas su root -c 'nohup xfe >/dev/null 2>&1 & sleep 1'"
 #endif
 
 #ifndef SUCMD
-#define SUCMD    " -g 60x4 -e su -c 'nohup xfe >& /dev/null & sleep 1'"
+#define SUCMD    " -g 60x4 -e su root -c 'nohup xfe >/dev/null 2>&1 & sleep 1'"
 #endif
 
 // Tooltips setup time and duration
